import React from 'react'


const Editor=(props)=>{
//    const updateEntity=()=>{
//         console.log(event)
//     }
    return(
        <div className='ui form'>
           <div className='field'>
               <textarea   
               rows="5"
                placeholder='写点东西'
                onInput={(event)=>{props.updateEntity(event)}}
                />
           </div>
        </div>
    )
}

export default Editor;